<?php

class otherController extends baseController {
	
	public function index() {
	
	}
	
	public function search() {
		
		$query = $this->registry->router->getPostValue ( 'query' );
		
		$this->registry->template->query = $query;
		
		//check if form was submitted
		if ($query) {
			$news = new News ();
			$search_result = $news->searchInContent ( $query );
			$this->registry->template->search_result = $search_result;
		}
	
	}
	
	//only just show the view template
	public function contacts() {
	}
	
}

?>

